package com.mgq.netty.chat.protocol;

import java.util.concurrent.atomic.AtomicInteger;

public class SequenceIdGenerator {
    private static final AtomicInteger atomicInteger = new AtomicInteger();
    public static Integer getId() {
        int id = atomicInteger.getAndIncrement();
        return id;
    }
}
